package com.baizhi.service.impl;
import com.baizhi.dao.MenuDao;
import com.baizhi.entity.Menu;
import com.baizhi.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuServiceImpl implements MenuService {

    @Autowired
    private MenuDao menuDao;

    //首页展示中查询左侧的导航栏展示菜单
    @Override
    public List<Menu> child() {
        return menuDao.child();
    }
}
